package com.yx.robot.sdk.req;

import com.iot.product.sweeper.bean.AreaInfo;
import com.yx.robot.bean.robot.CleanAreaInfo;
import com.iot.product.sweeper.bean.CleanSettings;
import com.iot.product.sweeper.bean.Room;

import java.util.List;

public class CleanParam {
    private int type;
    private List<SweepParam> pointSweepList;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public List<SweepParam> getSweepParamList() {
        return pointSweepList;
    }

    public void setSweepParamList(List<SweepParam> pointSweepList) {
        this.pointSweepList = pointSweepList;
    }

    /**
     * 自动清扫模式
     */
    public static class SweepParam {

    }

    public static class PointSweepParam extends SweepParam {
        public float x;
        public float y;
        public CleanSettings cleanSettings;
    }

    /**
     * 分区清扫
     */
    public static class RoomSweepParam extends SweepParam {
        public Room room;
        public CleanSettings cleanSettings;

        public Room getRoom() {
            return room;
        }

        public void setRoom(Room room) {
            this.room = room;
        }

        public CleanSettings getCleanSettings() {
            return cleanSettings;
        }

        public void setCleanSettings(CleanSettings cleanSettings) {
            this.cleanSettings = cleanSettings;
        }
    }

    /**
     * 区域清扫
     */
    public static class AreaSweepParam extends SweepParam {
        public AreaInfo area;
        public CleanSettings cleanSettings;

        public AreaInfo getArea() {
            return area;
        }

        public void setArea(AreaInfo area) {
            this.area = area;
        }

        public CleanSettings getCleanSettings() {
            return cleanSettings;
        }

        public void setCleanSettings(CleanSettings cleanSettings) {
            this.cleanSettings = cleanSettings;
        }
    }
}
